#include<stdio.h>
int main()
{
  int n,a,b,i=0,j;
  int m[1000];
  scanf("%d",&n);
    i=0;
    while(n/2!=0)
    {
      m[i]=n%2;
      i++;
      n=n/2;
    }
    m[i]=n;
    while(i>=0)
    {
      printf("%d",m[i]);
      i--;
    }
    printf("\n");
    return 0;
}
